package etnorservice.etnor_service.domain.dto;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class ProjectDTO {
    private Long id;
    private String name;
    private String description;
    private Long creatorId;
    private String creatorName;
    private Boolean isFree;
    private BigDecimal price;
    private String coverImage;
    private Integer downloadCount;
    private Integer viewCount;
    private String version;
    private Date createdAt;
    private Date updatedAt;
    private String status;

    private List<String> categories;
    private List<ProjectScreenshotDTO> screenshots;
    private List<String> tags;
    private List<ProjectFeatureDTO> features;
    private List<ProjectRequirementDTO> requirements;
    private List<ProjectVersionDTO> versions;

    // Gitee相关字段
    private String giteeRepoName;      // Gitee仓库名
    private String giteeRepoUrl;       // Gitee仓库Web URL
    private String giteeDownloadUrl;   // Gitee下载URL

    // 表单控制字段，不持久化到数据库
    private Boolean useGitee;          // 是否使用Gitee托管
}